package cn.gcxy.javase.io;

import java.io.PrintWriter;


public class PrintWriterDemo {
	public static void main(String[] args) {
       System.out.println("Hello World of Java");
       System.out.println("The answer  at this time.");

       PrintWriter pw = new PrintWriter(System.out);
       pw.println("The answer is  at this time.");

       int i = 42;
       pw.println(i + '=' + " the answer.");
       pw.println("Note: " + i + '=' + " the answer.");
       pw.println(i + "=" + " the answer.");
       pw.println(i + ('=' + " the answer."));

       pw.close();
  }
}
